<template>
  <div class="header-bar">
    <sider-trigger :collapsed="collapsed" icon="md-menu" @on-change="handleCollpasedChange"></sider-trigger>
    <div class="custom-content-con">
      <slot></slot>
    </div>
  </div>
</template>

<script>
import SiderTrigger from './sider-trigger/sider-trigger'
import './head-bar.less'
export default {
  name: 'HeadBar',
  components: {
    SiderTrigger
  },
  props: {
    collapsed: Boolean
  },
  methods: {
    handleCollpasedChange (state) {
      this.$emit('on-call-change', state)
    }

  }
}
</script>
